<template>
  <div>
    我是mock页面
  </div>
</template>
<script>
// 参考:https://blog.csdn.net/xiaoxiaojie12321/article/details/81301399
import api from '../../axios/api'
export default {
  name: 'Mock',
  data() {
    return {
      dataShow: []
    }
  },
  created() {
    this.getdata()
    this.getUserInfo()
    this.getUserList()
  },
  methods: {
    getdata: function() {
      api.mockdata('/data/index').then(res => {
        console.log(res)
        this.dataShow = res.data
      })
    },
    getUserInfo() {
      api.mockGetUserInfo('/data/userInfo').then(res => {
        console.log(res)
      })
    },
    getUserList() {
      api.mockGetUserList('/abc/userList').then(res => {
        console.log(res)
      })
    }
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>